package com.myway.dto.ics;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * 
 * @author vunloon
 * @since May 15, 2008
 */
public class DTOFlight implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long fltId;
	private String carrier;
	private String fltNo;
//	private Date fltDate;
	private String fltRoute;

	private String craftType;
	private String cabinCfg;
	private String registrationNo;
	private String remark;
	private String countryId;
	private String fltState;
	private String changeMark;
	private String mgtState;
	private List<DTOFlightLeg> flightLegs= new ArrayList<DTOFlightLeg>(0);
	private List<DTOFlightSegment> flightSegments=new ArrayList<DTOFlightSegment>(0);

    
	/**
	 * @return the flightSegments
	 */
	public List<DTOFlightSegment> getFlightSegments()
	{
		return flightSegments;
	}

	
	/**
	 * @param flightSegments the flightSegments to set
	 */
	public void setFlightSegments(List<DTOFlightSegment> flightSegments)
	{
		this.flightSegments = flightSegments;
	}

	/**
     * 
     * @return 
     */
	public long getFltId() {
		return this.fltId;
	}

    /**
     * 
     * @param fltId 
     */
	public void setFltId(long fltId) {
		this.fltId = fltId;
	}


    /**
     * 
     * @return 
     */
	public String getCarrier() {
		return this.carrier;
	}

    /**
     * 
     * @param carrier 
     */
	public void setCarrier(String carrier) {
		this.carrier = carrier;
	}


    /**
     * 
     * @return 
     */
	public String getFltNo() {
		return this.fltNo;
	}

    /**
     * 
     * @param fltNo 
     */
	public void setFltNo(String fltNo) {
		this.fltNo = fltNo;
	}


//	public Date getFltDate() {
//		return this.fltDate;
//	}
//
//	public void setFltDate(Date fltDate) {
//		this.fltDate = fltDate;
//	}


    /**
     * 
     * @return 
     */
	public String getFltRoute() {
		return this.fltRoute;
	}

    /**
     * 
     * @param fltRoute 
     */
	public void setFltRoute(String fltRoute) {
		this.fltRoute = fltRoute;
	}






    /**
     * 
     * @return 
     */
	public String getCraftType() {
		return this.craftType;
	}

    /**
     * 
     * @param craftType 
     */
	public void setCraftType(String craftType) {
		this.craftType = craftType;
	}


    /**
     * 
     * @return 
     */
	public String getCabinCfg() {
		return this.cabinCfg;
	}

    /**
     * 
     * @param cabinCfg 
     */
	public void setCabinCfg(String cabinCfg) {
		this.cabinCfg = cabinCfg;
	}


    /**
     * 
     * @return 
     */
	public String getRegistrationNo() {
		return this.registrationNo;
	}

    /**
     * 
     * @param registrationNo 
     */
	public void setRegistrationNo(String registrationNo) {
		this.registrationNo = registrationNo;
	}


    /**
     * 
     * @return 
     */
	public String getRemark() {
		return this.remark;
	}

    /**
     * 
     * @param remark 
     */
	public void setRemark(String remark) {
		this.remark = remark;
	}


    /**
     * 
     * @return 
     */
	public String getCountryId() {
		return this.countryId;
	}

    /**
     * 
     * @param countryId 
     */
	public void setCountryId(String countryId) {
		this.countryId = countryId;
	}


    /**
     * 
     * @return 
     */
	public String getFltState() {
		return this.fltState;
	}

    /**
     * 
     * @param fltState 
     */
	public void setFltState(String fltState) {
		this.fltState = fltState;
	}

    /**
     * 
     * @return 
     */
	public List<DTOFlightLeg> getFlightLegs() {
		return flightLegs;
	}

    /**
     * 
     * @param flightLegs 
     */
	public void setFlightLegs(List<DTOFlightLeg> flightLegs) {
		this.flightLegs = flightLegs;
	}

    /**
     * 
     * @return 
     */
	public String getChangeMark() {
		return changeMark;
	}

    /**
     * 
     * @param changeMark 
     */
	public void setChangeMark(String changeMark) {
		this.changeMark = changeMark;
	}

    /**
     * 
     * @return 
     */
	public String getMgtState() {
		return mgtState;
	}

    /**
     * 
     * @param mgtState 
     */
	public void setMgtState(String mgtState) {
		this.mgtState = mgtState;
	}

	@Override
	public String toString() {
		StringBuffer buf = new StringBuffer();
		buf.append("[").append(getFltId()).append("] ")
			.append(getCarrier())
			.append(" ")
			.append(getFltNo())
			.append(" ")
			.append(getFltRoute())
			.append(" ")
			.append(getFltState());
		return buf.toString();
	}


}
